From: Stefan Monnier Date: Wed, 28 Oct 2015 00:19:51 +0000 (-0400) Subject: * lisp/json.el (json-new-object): Optimize trivial `list' call X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~23^2~1814^2^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=449e351b1cc0cd9e3bac1ade36eb12b226fbed76;p=emacs.git * lisp/json.el (json-new-object): Optimize trivial `list' call --- diff --git a/lisp/json.el b/lisp/json.el index e2c7cc77222..b23d12ad0ed 100644 --- a/lisp/json.el +++ b/lisp/json.el @@ -358,7 +358,7 @@ Please see the documentation of `json-object-type'." (cond ((eq json-object-type 'hash-table) (make-hash-table :test 'equal)) (t - (list)))) + ()))) (defun json-add-to-object (object key value) "Add a new KEY -> VALUE association to OBJECT.